package org.stwy.lease.returnmoney;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.rap.frame.web.BaseController;

/*
 * 退款 控制类
 */
/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-25 9:33:07
*<p></p>
*
*@参与人：Rap.Codegen
*/

@Controller
@RequestMapping(value = "/lease/return")
public class ReturnController extends BaseController<ReturnEntity> {

	public ReturnController() {
		setResourceIdentity("stwy:lease:return");
	}
	private ReturnService getService(){
		return (ReturnService)super.baseService;
	}

	@RequestMapping(method = RequestMethod.GET)
	public String view(Model model) {
		super.assertHasViewPermission();
		return "stwy/lease/return/return_main";
	}

	@RequestMapping(value = "/select")
	public String select(Model model, String callback) {
		model.addAttribute("callback", callback);
		return "stwy/lease/return/return_select";
	}
}
